<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:mvc="http://www.springframework.org/schema/mvc"
	xsi:schemaLocation="http://www.springframework.org/schema/mvc https://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd
		http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans-4.3.xsd">

	<mvc:view-resolvers>
		<mvc:bean-name/>
		<mvc:jsp view-class="org.springframework.web.servlet.view.InternalResourceView"/>
		<mvc:freemarker prefix="freemarker-" suffix=".freemarker" view-names="my*,*Report"/>
		<mvc:groovy/>
		<mvc:script-template/>
		<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"/>
		<ref bean="customResolver"/>
	</mvc:view-resolvers>

	<bean id="customResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"/>

	<mvc:freemarker-configurer>
		<mvc:template-loader-path location="/"/>
		<mvc:template-loader-path location="/test"/>
	</mvc:freemarker-configurer>

	<mvc:groovy-configurer resource-loader-path="/test" cache-templates="false" auto-indent="true"/>

	<mvc:script-template-configurer engine-name="nashorn" render-function="render" content-type="text/plain"
			charset="ISO-8859-1" resource-loader-path="classpath:" shared-engine="false">
		<mvc:script location="org/springframework/web/servlet/view/script/nashorn/render.js"/>
	</mvc:script-template-configurer>

</beans>
